package com.funtl.screw.admin.mapper;

import com.funtl.screw.admin.entity.SysPost;
import com.funtl.screw.common.data.permission.ServiceBaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 岗位信息表
 *
 * @author fxz
 * @since 2022-03-26 12:50:43
 */
@Mapper
public interface SysPostMapper extends ServiceBaseMapper<SysPost> {

    /**
     * 通过用户ID，查询岗位信息
     *
     * @param userId 用户id
     * @return 岗位信息
     */
    List<SysPost> listPostsByUserId(Long userId);

}
